package com.js.purs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.js.purs.mapper.PurBindCddMapper;
import com.js.purs.domain.PurBindCdd;
import com.js.purs.service.IPurBindCddService;

/**
 * 候选人列表Service业务层处理
 * 
 * @author lzq
 * @date 20240707
 */
@Service
public class PurBindCddServiceImpl implements IPurBindCddService 
{
    @Autowired
    private PurBindCddMapper purBindCddMapper;

    /**
     * 查询候选人列表
     * 
     * @param cddId 候选人列表主键
     * @return 候选人列表
     */
    @Override
    public PurBindCdd selectPurBindCddByCddId(Long cddId)
    {
        return purBindCddMapper.selectPurBindCddByCddId(cddId);
    }

    /**
     * 查询候选人列表列表
     * 
     * @param purBindCdd 候选人列表
     * @return 候选人列表
     */
    @Override
    public List<PurBindCdd> selectPurBindCddList(PurBindCdd purBindCdd)
    {
        return purBindCddMapper.selectPurBindCddList(purBindCdd);
    }

    /**
     * 新增候选人列表
     * 
     * @param purBindCdd 候选人列表
     * @return 结果
     */
    @Override
    public int insertPurBindCdd(PurBindCdd purBindCdd)
    {
        return purBindCddMapper.insertPurBindCdd(purBindCdd);
    }

    /**
     * 修改候选人列表
     * 
     * @param purBindCdd 候选人列表
     * @return 结果
     */
    @Override
    public int updatePurBindCdd(PurBindCdd purBindCdd)
    {
        return purBindCddMapper.updatePurBindCdd(purBindCdd);
    }

    /**
     * 批量删除候选人列表
     * 
     * @param cddIds 需要删除的候选人列表主键
     * @return 结果
     */
    @Override
    public int deletePurBindCddByCddIds(Long[] cddIds)
    {
        return purBindCddMapper.deletePurBindCddByCddIds(cddIds);
    }

    /**
     * 删除候选人列表信息
     * 
     * @param cddId 候选人列表主键
     * @return 结果
     */
    @Override
    public int deletePurBindCddByCddId(Long cddId)
    {
        return purBindCddMapper.deletePurBindCddByCddId(cddId);
    }
}
